{extend name="base/base_manage" /}
{block name="manage_main"}



<div class="wrapper mt10" style="min-height: 400px;">
  <table class="dsdelivery-table">
    <thead> <tr>
        <td colspan="20">
            <form action="{:url('Manage/index')}" method="get">
                <input type="hidden" name="search_name" value="{$search_name|default=''}">
                <input type="checkbox" style="vertical-align: middle; margin-right: 5px;" name="hidden_success" id="hidden_success" value="1" {if $Request.get.hidden_success == 1}checked{/if}>隐藏已提货订单
            </form>
        </td>
      </tr>
      <tr>
        <th width="20%">商城订单</th>
        <th width="30%">物流运单</th>
        <th width="30%">收货人信息</th>
        <th class="tc">状态</th>
        <th width="10%" class="tc">操作</th>
      </tr>
    </thead>
    <tbody>
      {notempty name="dorder_list"}
      {foreach name="dorder_list" item="v" key="k" }
      <tr class="hover">
          <td><dl>
                  <dt>订单号：{$v.order_sn}</dt>
                  <dd class="date">{$v.dlyo_addtime|date="Y-m-d H:i:s",###}</dd>
              </dl></td>
          <td><dl>
                  <dt>运单号：{$v.shipping_code}<span class="express">({$v.express_name})</span></dt>
                  <dd><a href="javascript:void(0);" class="link" onclick="javascript:ajax_form('get_express', '查看物流', '{$Think.DELIVERY_SITE_URL}/Manage/get_express.html?e_code={$v.express_code}&shipping_code={$v.shipping_code}')">查看物流跟踪</a></dd>

              </dl></td>
          <td><dl>
                  <dt>收件人：{$v.reciver_name}</dt>
                  <dd class="tel"><span>手机：{$v.reciver_mobphone}</span><span>座机：{$v.reciver_telphone}</span></dd>

              </dl></td>
          <td class="tc">{$dorder_state[$v['dlyo_state']]}</td>
          <td class="tc handle">
              {if $v.dlyo_state == DELIVERY_ORDER_DEFAULT}
              <a href="javascript:void(0);" class="btn" onclick="javascript:ds_ajaxget_confirm('{$Think.DELIVERY_SITE_URL}/Manage/arrive_point.html?order_id={$v.order_id}','请确认包裹已经到站，提醒买家取件？');">到站</a>
              {elseif $v.dlyo_state == DELIVERY_ORDER_ARRIVE /}
              <a href="javascript:void(0);" class="btn" onclick="javascript:ajax_form('pickup_parcel', '取货', '{$Think.DELIVERY_SITE_URL}/Manage/pickup_parcel.html?order_id={$v.order_id}')">取货</a>
              {else/}
              --
              {/if}
          </td>
      </tr>
      {/foreach}
      {else /}
      <tr>
        <td colspan="10"><div class="dsdelivery-nodata">很抱歉，暂无任何数据</div></td>
      </tr>
      {/notempty}
    </tbody>
    <tfoot>
        {notempty name="dorder_list"}
        <tr class="tfoot">
            <td colspan="16" class="tc">{$show_page}</td>
        </tr>
        {/notempty}
    </tfoot>
  </table>
</div>
<script type="text/javascript">
$(function(){
    $('#hidden_success').click(function(){
        $(this).parents('form:first').submit();
    });
});
</script>


{/block}